ifneq ($(KERNELRELEASE),)
obj-m:=temp.o
else
KDIR:=/root/linux-2.6.38/
all:
        make -C $(KDIR) M=$(PWD) modules ARCH=arm CROSS_COMPLIE=arm-linux-gcc
clean:
        rm  -f  *.ko  *.o  *.mod.o  *.mod.c  *.symvers
endif